package com.zyl.pts.domain.dto.IRDTO;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @version v1.0
 * @ProjectName: product_source
 * @Package: com.zyl.pts.domain.dto.IRDTO
 * @ClassName: IRUpdateOrAdd
 * @Description TODO()
 * @Author 翟玉龙
 * @Date 2024/11/19-17:11
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class IRUpdateOrAddDTO {
    /**
     * 记录id
     */
    @JsonProperty("irdId")
    private Integer irdId;
    /**
     * 重量
     */
    @JsonProperty("irdWeight")
    private String irdWeight;
    /**
     * 记录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("irdTime")
    private LocalDateTime irdTime;
    /**
     * 是否健康 健康,不健康
     */
    @JsonProperty("irdHealthy")
    private String irdHealthy;
    /**
     * 体温
     */
    @JsonProperty("irdTemperature")
    private String irdTemperature;
    /**
     * 呼吸频率
     */
    @JsonProperty("irdBreathing")
    private String irdBreathing;
    /**
     * 心率
     */
    @JsonProperty("irdHeartRate")
    private String irdHeartRate;
    /**
     * 动物外键
     */
    @JsonProperty("irdAnimalId")
    @NotBlank(message = "动物编号不能为空")
    private String irdAnimalId;
}
